/*
 * @Author: zengxiaorong zxr1543109808@163.com
 * @Date: 2025-05-13 16:37:53
 * @LastEditors: zengxiaorong zxr1543109808@163.com
 * @LastEditTime: 2025-05-14 15:06:35
 * @FilePath: \big-screen-interface\src\api\electricity.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import request from './request';

const tabType=localStorage.getItem('tabType');
console.log(tabType,'---');
const apiName=tabType&&tabType==1?'/emission':'/footprint';

export function getEndCompositionAndProportion(params) {
  return request({
    url: '/emission/getEndCompositionAndProportion', 
    method: 'get',
    params
  });
}

export function getRigthEntDBList(params) {
  return request({
    url: '/emission/getRigthEntDBList', 
    method: 'get',
    params
  });
}

export function getLeftFactorsList(params) {
  return request({
    url: apiName+'/getLeftFactorsList', 
    method: 'get',
    params
  });
}

export function getUpperRightPartialList(params) {
  return request({
    url: apiName+'/getUpperRightPartialList', 
    method: 'get',
    params
  });
}

export function getMapList(params) {
  return request({
    url: '/emission/getMapList', 
    method: 'get',
    params
  });
}